﻿@model HRM.Models.Employee

@{
    ViewBag.Title = "Edit";
}

<h2>Edit</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Employee</legend>

        @Html.HiddenFor(model => model.EmployeeId)

        <div class="editor-label">
            @Html.LabelFor(model => model.Name)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Name)
            @Html.ValidationMessageFor(model => model.Name)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.FathersName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.FathersName)
            @Html.ValidationMessageFor(model => model.FathersName)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.MothersName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.MothersName)
            @Html.ValidationMessageFor(model => model.MothersName)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Address)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Address)
            @Html.ValidationMessageFor(model => model.Address)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Sex)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Sex)
            @Html.ValidationMessageFor(model => model.Sex)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Blood)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Blood)
            @Html.ValidationMessageFor(model => model.Blood)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Email)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Email)
            @Html.ValidationMessageFor(model => model.Email)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.DOB)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.DOB)
            @Html.ValidationMessageFor(model => model.DOB)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.JoiningDate)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.JoiningDate)
            @Html.ValidationMessageFor(model => model.JoiningDate)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ContractFinishDate)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ContractFinishDate)
            @Html.ValidationMessageFor(model => model.ContractFinishDate)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Education)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Education)
            @Html.ValidationMessageFor(model => model.Education)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Resume)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Resume)
            @Html.ValidationMessageFor(model => model.Resume)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Skill)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Skill)
            @Html.ValidationMessageFor(model => model.Skill)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Nationality)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Nationality)
            @Html.ValidationMessageFor(model => model.Nationality)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.NID)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.NID)
            @Html.ValidationMessageFor(model => model.NID)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Status)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Status)
            @Html.ValidationMessageFor(model => model.Status)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.CatagoryID, "Catagory")
        </div>
        <div class="editor-field">
            @Html.DropDownList("CatagoryID", String.Empty)
            @Html.ValidationMessageFor(model => model.CatagoryID)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ProjectID, "Project")
        </div>
        <div class="editor-field">
            @Html.DropDownList("ProjectID", String.Empty)
            @Html.ValidationMessageFor(model => model.ProjectID)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.DesignationID, "Designation")
        </div>
        <div class="editor-field">
            @Html.DropDownList("DesignationID", String.Empty)
            @Html.ValidationMessageFor(model => model.DesignationID)
        </div>

        <p>
            <input type="submit" class="submitButton" value="Save" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
